"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let BOMTool = {
    GetUA: function () {
        let u = navigator.userAgent;
        return u;
    },
    toClipboard: async function (text) {
        const textarea = document.createElement('textarea');
        textarea.readOnly = true;
        textarea.style.position = 'absolute';
        textarea.style.left = '-9999px';
        textarea.value = text;
        document.body.appendChild(textarea);
        textarea.select();
        textarea.setSelectionRange(0, textarea.value.length);
        document.execCommand('Copy');
        document.body.removeChild(textarea);
    }
};
exports.default = BOMTool;
